<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // if-else
        // P4.17
        var isLove = true;
        var isLike = true;
        if (isLove) {
            console.log('你，去考研吧');
        } else if (isLike) {
            console.log('你，必须去考研');
        } else {
            console.log('你，更要去考研');
        }

        // if-else if-else
    </script>
</body>

</html>